SftTree/OCX 7.0

SftTree.ColHeaderFont Property

Softel vdm, Inc.

Defines the font used for all column headers.

Deprecated - Provided for compatibility with earlier versions only - Use Headers.Font instead

Syntax       

Get

VB.NET

refFontObj = object.ColHeaderFont  As System.Drawing.FontLanguage-specific information

VB

Set refFontObj = object.ColHeaderFont  As IFontDisp

C#.NET

System.Drawing.FontLanguage-specific information refFontObj = object.ColHeaderFont;

VC++

IFontDisp* refFontObj = object->GetColHeaderFont();

C

HRESULT object->get_ColHeaderFont(IFontDisp** refFontObj);

Delphi

refFontObj := object.ColHeaderFont  : TFont;

Put

VB.NET

object.let_ColHeaderFont(ByVal refFontObj As System.Drawing.FontLanguage-specific information)

VB

object.ColHeaderFont = refFontObj  As IFontDisp

C#.NET

void object.let_ColHeaderFont(System.Drawing.FontLanguage-specific information refFontObj);

VC++

void object->PutColHeaderFont(IFontDisp* refFontObj);

C

HRESULT object->put_ColHeaderFont(IFontDisp* refFontObj);

Delphi

procedure object._Set_ColHeaderFont(refFontObj : TFont);

PutRef

VB.NET

object.ColHeaderFont = refFontObj  As System.Drawing.FontLanguage-specific information

VB

Set object.ColHeaderFont = refFontObj  As IFontDisp

C#.NET

System.Drawing.FontLanguage-specific information object.ColHeaderFont = refFontObj;

VC++

void object->PutRefColHeaderFont(IFontDisp* refFontObj);

C

HRESULT object->putref_ColHeaderFont(IFontDisp* refFontObj);

Delphi

object.ColHeaderFont := refFontObj  : TFont;

object

A SftTree object.

refFontObj

Defines the font used for all column headers.  For information about font properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Headers.Font instead

The ColHeaderFont property defines the font used for all column headers.

The ColHeaderFont property is used to change the font for all column headers and the row/column header.

Using PutRef (see Syntax above) the control will use the reference to the Font object.  If the Font object is later changed, this will also affect the font used by the control.  Using Put instead causes the control to create a copy of the Font object.  If the Font object is later changed, this will not affect the font used by the control as it uses a copy of the object.  Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com